package com.miku.blog.controller;

import com.miku.blog.annotation.SystemLog;
import com.miku.blog.domain.UserAuth;
import com.miku.blog.domain.pojo.ResponseResult;
import com.miku.blog.service.UniqueViewService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shkstart
 * @create ${}YEAR-06-12 21:52
 */
@Api(tags = "上传博客访问数据")
@RestController
public class UniqueViewController {

    @Autowired
    private UniqueViewService uniqueViewService;


    @SystemLog(notes = "添加访客数据")
    @ApiOperation(value = "添加访客数据接口",notes = "添加访客数据{用户信息 、ip等}")
    @PostMapping("/report")
    public ResponseResult report(){
        return uniqueViewService.report();
    }
}
